package com.example.entity;

import com.example.annotation.ConvertSame;

import java.util.Date;

public class EntityDto{
    private String name;
    private Integer age;
    private Date date;
    private int sex;
    private  Boolean isTrue;
    private Date ano;
    //private EntityDto myself;

    public EntityDto() {
    }


    public EntityDto(String name, Integer age, Date date, int sex, Boolean isTrue) {
        this.name = name;
        this.age = age;
        this.date = date;
        this.sex = sex;
        this.isTrue = isTrue;
    }

//    public EntityDto getMyself() {
//        return myself;
//    }
//    @ConvertSame()//代码实现是放在set方法上面
//    public void setMyself(EntityDto myself) {
//        this.myself = myself;
//    }

    public Date getAno() {
        return ano;
    }

    public void setAno(Date ano) {
        this.ano = ano;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Boolean getTrue() {
        return isTrue;
    }

    public void setTrue(Boolean aTrue) {
        isTrue = aTrue;
    }

    @Override
    public String toString() {
        return "EntityDto{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", date=" + date +
                ", sex=" + sex +
                ", isTrue=" + isTrue +
                ", ano=" + ano +
//                ", myself=" + myself +
                '}';
    }
}
